<extend name="Public/nodecration"/>
<block name="body">
    <table style="width:100%;">
        <tr style="line-height: 60px;font-size: large">
            <th colspan="4" class="text-center">{$msg}</th>
        </tr>
        <tr style="border:1px solid #ddd;">
            <td style="width: 40px;font-size: large;font-weight: 700;">序</td>
            <td style="width: 60px;font-size: large;font-weight: 700;">客户</td>
            <td style="font-size: large;font-weight: 700;">下单时间</td>
            <td style="font-size: large;font-weight: 700;">状态</td>
        </tr>
        <volist name="lists" id="list">
             <tr style="border:1px solid #ddd;line-height: 50px; ">
                <td class="text-center" style="font-size: large;font-weight: 700;color:blue"><a href="{:U('Packet/detail')}&orderid={$list['orderid']}">{$i}</a></td>
                <td style="font-size: large"><a href="{:U('Packet/detail')}&orderid={$list['orderid']}">{$list.buyerName}</a></td>
                <td style="font-size: large"><a href="{:U('Packet/detail')}&orderid={$list['orderid']}">{$list.createDate|time_format}</a></td>
                <td style="font-size: large;font-weight: 700">
                    <if condition="($list.is_packet eq 0)">
                        <a href="{:U('Packet/detail')}&orderid={$list['orderid']}"><span class="text-primary">未打包</span></a>
                    </if>
                    <if condition="($list.is_packet eq 1)">
                        <a href="{:U('Packet/detail')}&orderid={$list['orderid']}"> <span  class="text-danger">已打包</span></a>
                    </if>
                </td>
            </tr>
        </volist>
        <empty name="goodslists">
            <tr class="text-center" >
                <td colspan="4">目前没有订单</td>
            </tr>
        </empty>
    </table>

    <table class="" style="width: 100%;margin-left: 10px;">
        <th class="text-center" style="width: 90%">清单</th>
        <volist name="goodslists" id="goodslist">
            <tr class="text-left" style="border-bottom: 1px solid #ccc">
                <td >{$goodslist.pname}</td>
                <td>{$goodslist.sum}</td>
            </tr>
        </volist>

        <tr style="line-height: 40px;">
            <td><---------------------------------------------------></td>
        </tr>
    </table>

</block>

<block name="script">
    <script type="text/javascript">
    </script>
</block>